package cn.sharp.bbs.event;

import org.springframework.context.ApplicationEvent;

/**
 * @className: PostCreateEvent
 * @description: 发帖事件类
 * @author: 王晓崧
 * @date: 2022/7/10
 **/
public class PostCreateEvent extends ApplicationEvent {
    private Long key;

    public PostCreateEvent(Object source) {
        super(source);
    }

    public PostCreateEvent(Object source, Long key) {
        super(source);
        this.key = key;
    }

    public Long getKey() {
        return key;
    }
}
